package com.hospital.data.simulation.utils;

import java.util.Random;

public class InspectionGenerator {
    public static String generate() {
        StringBuilder sb = new StringBuilder();

        // 生成2位随机大写字母
        for (int i = 0; i < 2; i++) {
            char letter = (char) ('A' + new Random().nextInt(26));
            sb.append(letter);
        }

        // 生成4位随机数字（补零）
        int number = new Random().nextInt(10000); // 0 ~ 9999
        sb.append(String.format("%04d", number));

        return sb.toString();
    }
}
